package com.net.tkc.pro.service;


import com.net.tkc.pro.entity.User;
import com.net.tkc.pro.impl.UserImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserService implements UserImpl{
    @Resource
    UserImpl user;

    @Override
    public User getUser(String phone, String upwd) {
        return user.getUser(phone, upwd);
    }

    @Override
    public User getUser2(String phone) {
        return user.getUser2(phone);
    }

    @Override
    public List<User> getUser3() {
        return user.getUser3();
    }

    @Override
    public List<User> getUser4(String phone) {
        return user.getUser4(phone);
    }

    @Override
    public int addUser(User user2) {
        return user.addUser(user2);
    }

    @Override
    public int upUser(String uname, String email, String upwd, String phone, String province,
                      String city, String county, String cardid, String avatar, String username,
                      String sex, String autograph, int online, int age, int type, int islive,
                      int isvolunteer, int status, int id) {
        return user.upUser(uname, email, upwd, phone, province, city, county, cardid, avatar, username, sex, autograph, online, age, type, islive, isvolunteer, status, id);
    }

    @Override
    public int upUser2(int id) {
        return user.upUser2(id);
    }

    @Override
    public int delUser(int id) {
        return user.delUser(id);
    }

    @Override
    public String getAPI(String question) {
        return user.getAPI(question);
    }
}
